package com.xinzhidi.web.plot.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.xinzhidi.common.annotation.Excel;
import com.xinzhidi.common.core.domain.BaseEntity;
import com.xinzhidi.common.enums.DictTypeEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.util.Date;


/**
 * 小区对象 c_plot
 *
 * @author ruoyi
 * @date 2023-05-19
 */
@ApiModel(value = "小区对象")
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("c_plot")
public class CPlot extends BaseEntity {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "小区id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "小区名称")
    @Excel(name = "小区名称")
    private String parkName;

    @ApiModelProperty(value = "详细地址")
    @Excel(name = "详细地址")
    private String address;

    @ApiModelProperty(value = "楼栋数")
    @Excel(name = "楼栋数")
    private Integer buildNumber;

    @ApiModelProperty(value = "设置类型（1：初始设置  2：自动调控）")
    private String setType;

    @ApiModelProperty(value = "设置级别（0：小区  1：楼栋  2：单元  3：住户）")
    private String setLevel;

    @ApiModelProperty(value = "调控方法（1：手动调控  2：自动调控）")
    @Excel(name = "调控方法", readConverterExp = "1=：手动调控,2=：自动调控")
    private String regulationMethod;

    @ApiModelProperty(value = "调控策略:1 回水温度 2 室内温度 3 供回水平均温度 4 流量 5 热量")
    @Excel(name = "调控策略")
    private String controlStrategy;

    @ApiModelProperty(value = "热计量方式")
    @Excel(name = "热计量方式",dictType = DictTypeEnum.SYS_HEAT_METER)
    private String heatMeter;

    @ApiModelProperty(value = "供热用户")
    @Excel(name = "供热用户")
    private Integer heatUser;

    @ApiModelProperty(value = "供热面积")
    @Excel(name = "供热面积")
    private BigDecimal heatArea;

    @ApiModelProperty(value = "面积单价")
    @Excel(name = "面积单价")
    private BigDecimal areaPrice;

    @ApiModelProperty(value = "热量单价")
    @Excel(name = "热量单价")
    private BigDecimal heatPrice;

    @ApiModelProperty(value = "所属物业")
    @Excel(name = "所属物业")
    private String ownProperty;

    @ApiModelProperty(value = "供热公司")
    @Excel(name = "供热公司")
    private String heatCompany;

    @ApiModelProperty(value = "瞬时热量")
    private BigDecimal thermalPower;

    @ApiModelProperty(value = "瞬时流量")
    private BigDecimal velocityFlow;

    @ApiModelProperty(value = "累计热量")
    private BigDecimal currentHeatOrCold;

    @ApiModelProperty(value = "累计流量")
    private BigDecimal totalFlow;

    @ApiModelProperty(value = "供水温度")
    private BigDecimal waterSupplyTemperature;

    @ApiModelProperty(value = "回水温度")
    private BigDecimal returnWaterTemperature;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "热量表抄表时间")
    private Date heatReadTime;

    @ApiModelProperty(value = "热量表信息接收次数")
    private Integer heatTimes;

    @ApiModelProperty(value = "阀门开度")
    private Integer valveOpen;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "阀门抄表时间")
    private Date valveReadTime;

    @ApiModelProperty(value = "阀门信息接收次数")
    private Integer valveTimes;

    @ApiModelProperty(value = "自动抄表时间间隔（单位：小时）")
    private Integer intervalTime;

    @ApiModelProperty(value = "省")
    @Excel(name = "省")
    private String province;

    @ApiModelProperty(value = "市")
    @Excel(name = "市")
    private String city;

    @ApiModelProperty(value = "区/县")
    @Excel(name = "区/县")
    private String area;

    @ApiModelProperty(value = "模型id")
    private String modelIds;

    @ApiModelProperty(value = "锁定标识（0：未锁定  1：已锁定  默认0）")
    private Integer lockStatus;

    @ApiModelProperty(value = "删除标识（0：否  1：是  默认：0）")
    @TableLogic
    private String delFlag;

}
